from django.db import models

# Create your models here.
from django.contrib.auth.models import AbstractUser


class SuperUser(AbstractUser):
    phone = models.CharField(max_length=11, unique=True, verbose_name='手机号')
    avatar = models.CharField(max_length=255, verbose_name='头像', null=True, blank=True)

    class Meta:
        db_table = 'mj_user'
        verbose_name = '用户'
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.username
